package com.sheliduan.itlearning.blogger.model.vos.course;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: 断舍离
 * @date: 2025/2/24 10:54
 * @description: 修改课程入参VO
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UpdateCourseReqVO {

    @NotNull(message = "课程id不能为空")
    private Integer id;

    @NotBlank(message = "课程标题不能为空")
    private String title;

    @NotBlank(message = "课程封面不能为空")
    private String cover;

    @NotBlank(message = "课程摘要不能为空")
    private String summary;

    @NotBlank(message = "课程内容或视频链接不能为空")
    private String contentOrLocation;

    @NotNull(message = "课程类型不能为空")
    private Integer type;

    @NotNull(message = "课程价格不能为空")
    private Double price;

    @NotNull(message = "课程分类不能为空")
    private Integer categoryId;

    @NotNull(message = "课程标签不能为空")
    private Integer tagId;

    @NotNull(message = "课程状态不能为空")
    private Integer status;
}
